package com.xuzhijie.pms.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 许志杰
 * @since 2024-02-05
 */
@Data
@TableName("administrator")
public class Administrator implements Serializable {

    private static final long serialVersionUID = 1L;

    //使用雪花算法
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;


    private String account;
    private String password;
    private String name;

    /**
     * 身份证
     */
    private String identificationCard;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 证件照
     */
    private String face;

    /**
     * 加密盐
     */
    private String salt;


    private Integer authority;

    @TableField("adminInfo")
    private String adminInfo;

    @TableField("apartment")
    private String apartment;

    @TableField("status")
    private Integer status;

    @TableLogic
    @TableField("isDelete")
    private Integer isDelete;
}
